﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ClassLibrary
{
    public class Good
    {
        public string GoodID { get; set; }
        public string GoodName { get; set;}
        public double GoodPrice { get; set;}
        public int GoodCount {  get; set; }//购买的商品数
        public string ItemID {  get; set; }//购买的商品ID，和Item连接，1对1
        public string OrderID {  get; set; }//购买商品所属的订单ID，和Order连接，多对1
        public bool GoodStatus { get; set; }//商品的状态，true表示送达，false表示未送
        public Good()
        {

        }
        public Good(string goodID, string goodName,double goodPrice, int goodCount, string itemID,string orderID, bool goodStatus)
        {
            GoodID = goodID;
            GoodName = goodName;
            GoodPrice = goodPrice;
            GoodCount = goodCount;
            ItemID = itemID;
            OrderID = orderID;
            GoodStatus = goodStatus;
        }
    }
}
